import FileUpload from '@/helpers/FileUpload';
import {uploadToken} from './Cache';

export default class extends FileUpload {
    /**
     * 获取上传参数
     * @param drive
     * @returns {Promise<*>}
     */
    uploadParameter(driver = null, dir = null) {
        if (driver) this.driver = driver;
        return uploadToken(this.driver, dir);
    }
}
